projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
455af46
)
make unexec_free handle NULL the same way free does
author
Jim Meyering
<jim@meyering.net>
Thu, 12 Jun 2008 22:53:07 +0000
(22:53 +0000)
committer
Jim Meyering
<jim@meyering.net>
Thu, 12 Jun 2008 22:53:07 +0000
(22:53 +0000)
* unexmacosx.c (unexec_free): Ignore a NULL argument.
src/ChangeLog
patch
|
blob
|
history
src/unexmacosx.c
patch
|
blob
|
history
diff --git
a/src/ChangeLog
b/src/ChangeLog
index 6361f522fe7d91dc82e6108f121896004771dc2c..a936794edc7f2149099df68f9c86524ec862196b 100644
(file)
--- a/
src/ChangeLog
+++ b/
src/ChangeLog
@@
-1,3
+1,8
@@
+2008-06-12 Jim Meyering <meyering@redhat.com>
+
+ make unexec_free handle NULL the same way free does
+ * unexmacosx.c (unexec_free): Ignore a NULL argument.
+
2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
* character.h (CHAR_TO_BYTE_SAFE): New macro.
diff --git
a/src/unexmacosx.c
b/src/unexmacosx.c
index 4662260128159dd351fd946bc67e20e49b49713c..57f70f8557f74ac3a0752e9dcef45046d09590e3 100644
(file)
--- a/
src/unexmacosx.c
+++ b/
src/unexmacosx.c
@@
-1318,6
+1318,8
@@
unexec_realloc (void *old_ptr, size_t new_size)
void
unexec_free (void *ptr)
{
+ if (ptr == NULL)
+ return;
if (in_dumped_exec)
{
if (!ptr_in_unexec_regions (ptr))